﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutojsController.Config
{
    // 仅存放部署时可能修改的常量
    public static class Consts
    {
        public const int MAX_MOBILE_COUNT = 200;    //限制手机数量
        public const int MAX_SCRIPT_COUNT = 100;    //限制脚本数量
        public const int MAX_GROUP_COUNT = 10;      //限制分组数量

        public const int SOCK_CONNECT_TIMEOUT = 3000; //socket连接超时时间(毫秒)

        public const int PARALLEL_CONCURRENT_COUNT = 5; //限制批量执行时的并发数量

        public const string DB_FILE_NAME = "config.db"; //sqlite数据库的文件名

        public const string SCRIPT_DIRECTORY_NAME = "scripts"; //脚本存放目录名
        public const int SCRIPT_MAX_BYTES = 10 * 1024 * 1024; //脚本限制10M以内

        public const string LOG_DIR = "logs/";  //日志目录
        public const string LOG_FORMAT = "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj}{NewLine}{Exception}";  //输出的日志格式(按日压缩不打印日期)
    }
}
